Skip to main content

control

Type

keyword

Summary

Designates all object types that can be placed on a card.

Syntax

control

Description

Use the control keyword in an object reference.

A control is any object that can be placed on a card: a button, field, scrollbar, image, graphic, player, EPS object, or group.

You can refer to a control by number or by name. The expression control 2 refers to the control whose layer is 2. The expression control "this" refers to the first control whose short name is "this".

Examples

put the number of controls into index
select control 5

function: number, mouseControl

glossary: keyword, object reference, object type, expression

keyword: card

property: name, layer

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?